css image fit in div with aspect ratio

41

img {
    width: 100%;
    height: 100%; 
    object-fit: contain;
}

Comments

Submit
0 Comments